﻿using Cemit.PolyServer.Main;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Cemit.PolyServer
{
    [Obsolete("已失效，直接通过Program类管理项目")]
    static class Servers
    {
        public static ServiceProvider Provider { get; private set; }

        static void Start()
        {
            //Debug.Log($"服务器开始启动。PolyServer {VERSION} CEMIT");

            IServiceCollection services = new ServiceCollection();
            //services.AddSingleton<IMainServer>(new Main.PolyServer("127.0.0.1", 2333));

            Provider = services.BuildServiceProvider();

            Debug.Log($"服务器启动完成。");
        }
    }
}
